import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'
import '@/icons' // icon
import '@/permission' // permission control
import '@/utils/hasPermission'
import '@/utils/preventReClick.js'
import Components from '@/components/index'
import i18n from '@/i18n'
import vueClipboard2 from 'vue-clipboard2'
// eslint-disable-next-line no-unused-vars
Vue.use(ElementUI)
Vue.use(Components)
Vue.use(vueClipboard2)
// 开发环境选择false， 线上环境选择true
Vue.config.productionTip = false

// runtime-only版本的vue，也就是正式开发环境
const vue = new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})
export default vue
